package com.beyond.flow.container

import com.beyond.flow.inter.UiEvent
import com.beyond.flow.inter.UiState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow

/**
 * @author chenshiyang
 * @time 2022/11/10 17:38
 * @name beyond-kotlin-frame
 * @class describe
 */
interface Container<S: UiState, E: UiEvent> {
    /**
     * ui 状态流
     */
    val uiStateFlow: StateFlow<S>

    /**
     * 单次事件流
     */
    val uiEventFlow: Flow<E>
}